/*
 * @Author: 1243sd 782012816@qq.com
 * @Date: 2024-03-28 20:51:50
 * @LastEditors: 1243sd 782012816@qq.com
 * @LastEditTime: 2024-04-05 17:24:57
 * @FilePath: \frontend-ykt-admin\src\api\requestApi\withdraw.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import _axios from '../axios';

const withdraw = {
    // 审核提现申请
    withdraw_apply(id, data) {
        return _axios({
            method: 'put',
            url: `api/withdraw/${id}/review`,
            data
        })
    },
   // 确定已打款
    withdraw_confirm_send_money(id, data) {
        return _axios({
            method: 'put',
            url: `api/withdraw/${id}/confirm_paid`,
            data
        })
    },
	// 提现申请 - 导出
	withdraw_export(data) {
		return _axios({
		  method: "post",
		  url: `api/export/withdraw`,
		  data,
          isBlob: true,
          filename: '提现申请导出列表'
		});
	},
};
export default  withdraw;